package com.itheima.ioTest;

import java.io.File;

public class text {
    public static void main(String[] args) {
        //meothd();
        //meothd1();
        //meothd2();
    }

    public static void meothd2() {
        String path="\\a.txt";
        File file=new File("C:\\itheima",path);
        System.out.println(file);
    }

    public static void meothd1() {
        String path="C:\\itheima";
        String path1="\\a.txt";
        File file =new File(path,path1);
        System.out.println(file);
    }

    public static void meothd() {
        //通过字符串转换为抽象路径名字
        String path="C:\\itheima\\a.txt";
        File file=new File(path);
        System.out.println(file);
    }
}
